package com.liu.cloud.payment.service.impl;

import com.liu.cloud.payment.dao.PaymentDao;
import com.liu.cloud.common.entitys.Payment;
import com.liu.cloud.payment.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentDao paymentDao;


    public int create(Payment payment){
        return paymentDao.create(payment);
    }

    public Payment findbyId(long id){
        return paymentDao.getById(id);
    }
}
